﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PagesLog.ascx.cs" Inherits="Member_Tools_Control_PagesLog" %>
<h2>
    Page log</h2>
<table width="100%">
    <tr>
        <td width="80px">
            <b>Ngày</b>
        </td>
        <td>
            <asp:TextBox ID="txtNgay" runat="server" CssClass="date"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
        <span class="button">
            <asp:Button ID="btnSearch" runat="server" Text="Tìm" 
                onclick="btnSearch_Click" />
            <span></span>
        </span>
        </td>
    </tr>
</table>
<table class="grid">
    <tr>
        <th width="30px">
        </th>
        <th>
            Page name
        </th>
        <th width="80px">
            Lượt xem
        </th>
    </tr>
    <asp:Repeater ID="rep" runat="server">
        <ItemTemplate>
            <tr>
                <td align="center">
                    <%# Container.ItemIndex + 1 %>
                </td>
                <td>
                <a href='/Member/Tools/PagesLogView.aspx?page=<%# Eval("Id") %>&date=<%# Server.UrlEncode(date) %>' title="Xem log" target="_blank">
                <%# string.IsNullOrEmpty(Eval("PageName").ToString()) ? Eval("PageId") : Eval("PageName") %>
                </a>
                </td>
                <td align="center">
                    <%# Eval("ViewLogs") %>
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>
